import homeRoutes from "@/routers/home_two/home";

//一级路由
export default [
    //注册
    {
        path:'/register',
        name:'register',
        component:()=>import('@v/Register.vue')
    },
    //登录
    {
        path:'/login',
        name:'login',
        component:()=>import('@v/Login.vue')
    },
    //首页
    {
        path:'/home',
        name:'home',
        component:()=>import('@v/Home.vue'),
        children:homeRoutes
    },
    //个人中心
    {
        path:"/personcenter",
        name:"personcenter",
        component:()=>import("@/views/PersonCenter.vue")
    },
    //在线客服
    {
        path:"/kefu",
        name:"kefu",
        component:()=>import("@/views/KeFu.vue")
    },
    //安全中心
    {
        path:"/anquan",
        name:"anquan",
        component:()=>import("@/views/AnQuan.vue")
    },
    //常见问题
    {
        path:"/wenti",
        name:"wenti",
        component:()=>import("@/views/WenTi.vue")
    },
    // 没有在路由列表中的页面都使用notfound  没有该组件
    {
        path:'*',
        name:'notFound',
        component:()=>import('@v/NotFound.vue')
    },
    //重定向
    {
        path:'/',
        redirect: {
            name:'home'
        }
    }
]